home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / SLAX 6.0.8 / slax-6.0.8.iso / slax / base / 006-devel.lzm / usr / include / k3bblankingjob.h < prev    next >
Encoding:
C/C++ Source or Header  |  2008-05-27  |  1.7 KB  |  72 lines

  1. /*
  2.  *
  3.  * $Id: k3bblankingjob.h 619556 2007-01-03 17:38:12Z trueg $
  4.  * Copyright (C) 2003 Sebastian Trueg <trueg@k3b.org>
  5.  *
  6.  * This file is part of the K3b project.
  7.  * Copyright (C) 1998-2007 Sebastian Trueg <trueg@k3b.org>
  8.  *
  9.  * This program is free software; you can redistribute it and/or modify
  10.  * it under the terms of the GNU General Public License as published by
  11.  * the Free Software Foundation; either version 2 of the License, or
  12.  * (at your option) any later version.
  13.  * See the file "COPYING" for the exact licensing terms.
  14.  */
  15.  
  16. #ifndef K3B_BLANKING_JOB_H
  17. #define K3B_BLANKING_JOB_H
  18.  
  19. #include <k3bjob.h>
  20. #include "k3b_export.h"
  21. class KProcess;
  22. class QString;
  23. class K3bDevice::Device;
  24. class K3bAbstractWriter;
  25.  
  26.  
  27. class LIBK3B_EXPORT K3bBlankingJob : public K3bBurnJob
  28. {
  29.   Q_OBJECT
  30.  
  31.  public:
  32.   K3bBlankingJob( K3bJobHandler*, QObject* parent = 0 );
  33.   ~K3bBlankingJob();
  34.  
  35.   K3bDevice::Device* writer() const;
  36.  
  37.   bool hasBeenCanceled() const { return m_canceled; }
  38.  
  39.   enum blank_mode { Fast, Complete, Track, Unclose, Session };
  40.  
  41.  public slots:
  42.   void start();
  43.   void cancel();
  44.   void setForce( bool f ) { m_force = f; }
  45.   void setDevice( K3bDevice::Device* d );
  46.   void setSpeed( int s ) { m_speed = s; }
  47.   void setMode( int m ) { m_mode = m; }
  48.   void setWritingApp (int app) { m_writingApp = app; }
  49.  
  50.   /**
  51.    * If set true the job ignores the global K3b setting
  52.    * and does not eject the CD-RW after finishing
  53.    */
  54.   void setForceNoEject( bool b ) { m_forceNoEject = b; }
  55.  
  56.  private slots:
  57.   void slotFinished(bool);
  58.   void slotStartErasing();
  59.  
  60.  private:
  61.   K3bAbstractWriter* m_writerJob;
  62.   bool m_force;
  63.   K3bDevice::Device* m_device;
  64.   int m_speed;
  65.   int m_mode;
  66.   int m_writingApp;
  67.   bool m_canceled;
  68.   bool m_forceNoEject;
  69. };
  70.  
  71. #endif
  72.